
<%@ page import="com.portico.dept.solarch.Project" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'project.label', default: 'Project')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.name.label" default="Name" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "name")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.description.label" default="Description" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "description")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.projectType.label" default="Project Type" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "projectType")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.projectSubType.label" default="Project Sub Type" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "projectSubType")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.projectState.label" default="Project State" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "projectState")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.startDate.label" default="Start Date" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${projectInstance?.startDate}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.endDate.label" default="End Date" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${projectInstance?.endDate}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.sharePointUrl.label" default="Share Point Url" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "sharePointUrl")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.wikiUrl.label" default="Wiki Url" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "wikiUrl")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.forecast.label" default="Forecast" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${projectInstance.forecast}" var="f">
                                    <li><g:link controller="projectForecast" action="show" id="${f.id}">${f?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.projectAdmins.label" default="Project Admins" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${projectInstance.projectAdmins}" var="p">
                                    <li><g:link controller="user" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.projectNumber.label" default="Project Number" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "projectNumber")}</td>
                            
                        </tr>
                    
                        %{--<tr class="prop">--}%
                            %{--<td valign="top" class="name"><g:message code="project.qualityDetails.label" default="Quality Details" /></td>--}%
                            %{----}%
                            %{--<td valign="top" style="text-align: left;" class="value">--}%
                                %{--<ul>--}%
                                %{--<g:each in="${projectInstance.qualityDetails}" var="q">--}%
                                    %{--<li><g:link controller="projectQuality" action="show" id="${q.id}">${q?.encodeAsHTML()}</g:link></li>--}%
                                %{--</g:each>--}%
                                %{--</ul>--}%
                            %{--</td>--}%
                            %{----}%
                        %{--</tr>--}%
                    
                        %{--<tr class="prop">--}%
                            %{--<td valign="top" class="name"><g:message code="project.recurringStatus.label" default="Recurring Status" /></td>--}%
                            %{----}%
                            %{--<td valign="top" style="text-align: left;" class="value">--}%
                                %{--<ul>--}%
                                %{--<g:each in="${projectInstance.recurringStatus}" var="r">--}%
                                    %{--<li><g:link controller="projectStatus" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>--}%
                                %{--</g:each>--}%
                                %{--</ul>--}%
                            %{--</td>--}%
                            %{----}%
                        %{--</tr>--}%
                    
                        %{--<tr class="prop">--}%
                            %{--<td valign="top" class="name"><g:message code="project.releaseDetails.label" default="Release Details" /></td>--}%
                            %{----}%
                            %{--<td valign="top" style="text-align: left;" class="value">--}%
                                %{--<ul>--}%
                                %{--<g:each in="${projectInstance.releaseDetails}" var="r">--}%
                                    %{--<li><g:link controller="releaseDetail" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>--}%
                                %{--</g:each>--}%
                                %{--</ul>--}%
                            %{--</td>--}%
                            %{----}%
                        %{--</tr>--}%
                    
                        %{--<tr class="prop">--}%
                            %{--<td valign="top" class="name"><g:message code="project.risks.label" default="Risks" /></td>--}%
                            %{----}%
                            %{--<td valign="top" style="text-align: left;" class="value">--}%
                                %{--<ul>--}%
                                %{--<g:each in="${projectInstance.risks}" var="r">--}%
                                    %{--<li><g:link controller="projectRisks" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>--}%
                                %{--</g:each>--}%
                                %{--</ul>--}%
                            %{--</td>--}%
                            %{----}%
                        %{--</tr>--}%
                    
                        %{--<tr class="prop">--}%
                            %{--<td valign="top" class="name"><g:message code="project.roster.label" default="Roster" /></td>--}%
                            %{----}%
                            %{--<td valign="top" style="text-align: left;" class="value">--}%
                                %{--<ul>--}%
                                %{--<g:each in="${projectInstance.roster}" var="r">--}%
                                    %{--<li><g:link controller="projectTeamMember" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>--}%
                                %{--</g:each>--}%
                                %{--</ul>--}%
                            %{--</td>--}%
                            %{----}%
                        %{--</tr>--}%
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.sponsor.label" default="Sponsor" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "sponsor")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="project.technicalManager.label" default="Technical Manager" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: projectInstance, field: "technicalManager")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${projectInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
          %{--<h2>Quality Detail</h2>--}%
          %{--<gui:accordion >--}%
            %{--<gui:accordionElement id="${projectInstance.id}-quality" title="${projectInstance.name} Quality Detail">--}%
              %{--<g:include action="list" controller="projectQuality" params="[''project.id:'${projectInstance.id}', statusType:'Weekly']"/>--}%
            %{--</gui:accordionElement>--}%
          %{--</gui:accordion>--}%
          
        </div>
    </body>
</html>
